
<script type="text/javascript">

	function validateForm(){
		var form = document.forms[0]; 
		if ((form.idUser.value != "") && (form.idNewsGroup.value != ""))
			form.submit();
		else
			alert('Debe seleccionar un Usuario y un Grupo');
	} 

	function cancelar() {
		window.location.href='<%=request.getContextPath() %>/memberList.do';
	} 
</script>

<tr align="left" bgcolor="#F3F9FC">
	<td>Usuario:</td>
	<td>
		<html:select property="idUser">
			<option value="">Seleccione...</option>
			<html:optionsCollection name="memberEditForm" property="usuarios" value="id" label="userName"/> 
		</html:select>
	</td>
</tr>

	<td>Grupo de Noticias:</td>
	<td>
		<html:select property="idNewsGroup">
			<option value="">Seleccione...</option>
			<html:optionsCollection name="memberEditForm" property="newsGroups" value="id" label="name"/> 
		</html:select>
	</td>
</tr>


				